//
//import org.openqa.selenium.*;
//import org.openqa.selenium.chrome.ChromeDriver;
//import org.testng.Assert;
//import org.testng.annotations.AfterMethod;
//import org.testng.annotations.BeforeMethod;
//import org.testng.annotations.Test;
//
//public class Test01 {
//    WebDriver driver = null;
//    @BeforeMethod   // 每次
//    public  void  beee(){
//        driver = new ChromeDriver();
//    }
//    @AfterMethod
//    public  void  bee(){
//        driver.close();
//    }
//    @Test
//    public void testCase1()   {
//        driver.get("http://192.168.30.131:8120/#/login");
//        //进入到鞋小铺后台登录页面
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[1]/div/div[1]/input")).sendKeys("admin");
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[2]/div/div[1]/input")).sendKeys("123456");
//        //输入密码
//        driver.findElement(By.xpath("/html/body/div/div/div/div[2]/form/div[3]/div/div[1]/div[1]/div/input")).sendKeys("123456");
//        //输入验证码
//        driver.findElement(By.tagName("button")).click();
//        //点击登录按钮
//
//        WebElement ass = driver.findElement(By.xpath("/html/body/div[1]/nav/div[2]/ul[2]/li[2]/div"));
//        try {
//            Assert.assertEquals("admin",ass.getText());
//            System.out.println("ass.getText() = " + ass.getText());
//        }catch (AssertionError e){
//            Assert.fail("登录失败"+e);
//          try {
//              System.out.println("111111");
//          }catch (Exception a){
//              a.printStackTrace();
//          }
//        }
//
//    }
//    @Test
//    public void testCase2()   {
//        driver.get("http://192.168.30.131:8120/#/login");
//        //进入到鞋小铺后台登录页面
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[1]/div/div[1]/input")).sendKeys("");
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[2]/div/div[1]/input")).sendKeys("123456");
//        //输入密码
//        driver.findElement(By.xpath("/html/body/div/div/div/div[2]/form/div[3]/div/div[1]/div[1]/div/input")).sendKeys("123456");
//        //输入验证码
//        driver.findElement(By.tagName("button")).click();
//        //点击登录按钮
//
//    }
//    @Test
//    public void testCase3()   {
//        driver.get("http://192.168.30.131:8120/#/login");
//        //进入到鞋小铺后台登录页面
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[1]/div/div[1]/input")).sendKeys("admin");
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[2]/div/div[1]/input")).sendKeys("");
//        //输入密码
//        driver.findElement(By.xpath("/html/body/div/div/div/div[2]/form/div[3]/div/div[1]/div[1]/div/input")).sendKeys("123456");
//        //输入验证码
//        driver.findElement(By.tagName("button")).click();
//        //点击登录按钮
//
//    }
//    @Test
//    public void testCase4()   {
//        driver.get("http://192.168.30.131:8120/#/login");
//        //进入到鞋小铺后台登录页面
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[1]/div/div[1]/input")).sendKeys("admin");
//        driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/form/div[2]/div/div[1]/input")).sendKeys("123456");
//        //输入密码
//        driver.findElement(By.xpath("/html/body/div/div/div/div[2]/form/div[3]/div/div[1]/div[1]/div/input")).sendKeys("");
//        //输入验证码
//        driver.findElement(By.tagName("button")).click();
//        //点击登录按钮
//
//    }
//}